<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/7/24
 * Time: 11:12
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;


use think\Validate;

class Upload extends Validate
{
    protected $rule = [
        "image" => "file|fileSize:2097152|fileExt:jpg,jpeg,png,gif"
    ];
    protected $message = [
        "image.file" => "文件类型不正确",
        "image.fileSize" => "文件大小不能超过2M",
        "image.fileExt" => "文件后缀不正确",
    ];
    protected $scene = [
        "image" => ["image"]
    ];
}